﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;
using Emerson.Storage.Entities;
using Emerson.Storage.Service.Interface;
using Emerson.Storage.Service;
using System.ServiceModel.Description;

namespace Emerson.Storage.Host
{
    class Program
    {
        static void Main(string[] args)
        { 
            ApplicationService service = new ApplicationService();
            ServiceHost host = new ServiceHost(service);
            host.Open();

            Console.WriteLine("Service is running, press Q to exit");
            while (true)
            {
                string res = Console.ReadLine();
                if (res == "Q" || res == "q") return;
            }
        }
    }
}
